<?php
//+--------------------------------------------
//|描述
//|--------------------------------------------
//|Created by PhpStorm.
//| Author: DRG
//+-------------------------------------------
//|Date: 2018/6/4
//| Time: 17:00
//+--------------------------------------------
namespace app\common\lib;

class Redis{
    //验证码的前缀
    public static $pre = 'sms_';
    //用户user 前缀
    public static $userpre = 'user_';
    
    /**
     * 发送验证码存储redis
     * @param $phone
     * @return string
     * @author DRG
     */
    public static function smsKey($phone)
    {
        return self::$pre.$phone;
    }
    
    public static function userKey($phone)
    {
        return self::$userpre.$phone;
    }
}